package com.example.springbook.demos.web.book.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Q
 * @create 2025-06-15-14:55
 */
@AllArgsConstructor
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    NOLOGIN(-1, "未登录"),
    FAIL(-2, "其他错误"),
    ;
    @Getter
    private int code;
    @Getter
    private String name;

}